<?php
//获取系统的一些变量之类的
class SystemAction extends AuthbaseAction {
	public function __construct()
	{
		parent::__construct();
	}
	function index(){
		$data = include APP_PATH."/Conf/sysconfig.php";
		$code = trim($this->_request("code"));
		if(isset($data[$code]) && $data[$code]){
			exit(json_encode(array('status'=>1 , 'message'=>'获取成功' , 'value'=>$data[$code])));
		}
		exit(json_encode(array('status'=>0, 'message'=>'获取失败' , 'value'=>'')));
	}
}